import Vue from 'vue'
import App from './App.vue'

// 导入elemui
import ElementUI from 'element-ui';
// 导入ele样式
import 'element-ui/lib/theme-chalk/index.css';
// 注册elem
Vue.use(ElementUI);
Vue.config.productionTip = false
// router的导入
import router from '@/router/index.js'

import axios from 'axios'
let _fetch = axios.create({
  baseURL: process.env.VUE_APP_URL,
  withCredentials:true,
})
Vue.prototype.$axios = _fetch

import store from "@/store"
// 注入到new vue 
new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')
